package com.kaigejava.juc.concurrentcontainers;

import java.util.*;
import java.util.concurrent.CopyOnWriteArraySet;

/**
 * @author kaigejava
 * set集合并发类演示
 */
public class SetDemo1 {
    public static void main(String[] args) {
        Set<String> hashSet = new HashSet<>();
        Set<String> treeSet = new TreeSet<>();
        Set<String> linkedHashSet = new LinkedHashSet<>();

        Set<String> synSet = Collections.synchronizedSet(new HashSet<>());
        Set<String> copySet = new CopyOnWriteArraySet<>();


    }
}
